home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 21 / AACD 21.iso / AACD / Utilities / Ghostscript / src / gxclpage.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-01-01  |  2.5 KB  |  59 lines

  1. /* Copyright (C) 1997 Aladdin Enterprises.  All rights reserved.
  2.   
  3.   This file is part of AFPL Ghostscript.
  4.   
  5.   AFPL Ghostscript is distributed with NO WARRANTY OF ANY KIND.  No author or
  6.   distributor accepts any responsibility for the consequences of using it, or
  7.   for whether it serves any particular purpose or works at all, unless he or
  8.   she says so in writing.  Refer to the Aladdin Free Public License (the
  9.   "License") for full details.
  10.   
  11.   Every copy of AFPL Ghostscript must include a copy of the License, normally
  12.   in a plain ASCII text file named PUBLIC.  The License grants you the right
  13.   to copy, modify and redistribute AFPL Ghostscript, but only under certain
  14.   conditions described in the License.  Among other things, the License
  15.   requires that the copyright notice and this notice be preserved on all
  16.   copies.
  17. */
  18.  
  19. /*$Id: gxclpage.h,v 1.2 2000/09/19 19:00:35 lpd Exp $ */
  20. /* Command list procedures for saved pages */
  21. /* Requires gdevprn.h, gxclist.h */
  22.  
  23. #ifndef gxclpage_INCLUDED
  24. #  define gxclpage_INCLUDED
  25.  
  26. #include "gxclio.h"
  27.  
  28. /* ---------------- Procedures ---------------- */
  29.  
  30. /*
  31.  * Package up the current page in a banding device as a page object.
  32.  * The client must provide storage for the page object.
  33.  * The client may retain the object in memory, or may write it on a file
  34.  * for later retrieval; in the latter case, the client should free the
  35.  * in-memory structure.
  36.  */
  37. int gdev_prn_save_page(P3(gx_device_printer * pdev, gx_saved_page * page,
  38.               int num_copies));
  39.  
  40. /*
  41.  * Render an array of saved pages by setting up a modified get_bits
  42.  * procedure and then calling the device's normal output_page procedure.
  43.  * Any current page in the device's buffers is lost.
  44.  * The (0,0) point of each saved page is translated to the corresponding
  45.  * specified offset on the combined page.  (Currently the Y offset must be 0.)
  46.  * The client is responsible for freeing the saved and placed pages.
  47.  *
  48.  * Note that the device instance for rendering need not be, and normally is
  49.  * not, the same as the device from which the pages were saved, but it must
  50.  * be an instance of the same device.  The client is responsible for
  51.  * ensuring that the rendering device's buffer size (BufferSpace value) is
  52.  * the same as the BandBufferSpace value of all the saved pages, and that
  53.  * the device width is the same as the BandWidth value of the saved pages.
  54.  */
  55. int gdev_prn_render_pages(P3(gx_device_printer * pdev,
  56.                  const gx_placed_page * ppages, int count));
  57.  
  58. #endif /* gxclpage_INCLUDED */
  59.